package cn.hncj.lyc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.hncj.lyc.bean.GoodsInfo;
import cn.hncj.lyc.dao.GoodsInfoSearch;
import cn.hncj.lyc.service.SearchGoodsInfo;
import cn.hncj.lyc.utils.Const;
@Service
public class SearchGoodsInfoServiceImpl implements SearchGoodsInfo {
	@Autowired
	private GoodsInfoSearch goodsInfoSearch;

	@Override
	public List<GoodsInfo> searchGoodsInfo(GoodsInfo goodsName) {
		// TODO Auto-generated method stub
		//goodsInfo.setGoodsState(Const.GOODS_STATE_UP);//上架商品
		
		//List<GoodsInfo> searchgoodsInfo = searchGoodsInfo.searchGoodsInfo(goodsInfo);
	
		//return searchgoodsInfo;
		return goodsInfoSearch.searchGoodsInfo(goodsName);
	
	}

}
